package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.ContactsInfoDao;
import io.renren.entity.ContactsInfoEntity;
import io.renren.service.ContactsInfoService;



@Service("contactsInfoService")
public class ContactsInfoServiceImpl implements ContactsInfoService {
	@Autowired
	private ContactsInfoDao contactsInfoDao;
	
	@Override
	public ContactsInfoEntity queryObject(Integer id){
		return contactsInfoDao.queryObject(id);
	}
	
	@Override
	public List<ContactsInfoEntity> queryList(Map<String, Object> map){
		return contactsInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return contactsInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(ContactsInfoEntity contactsInfo){
		contactsInfoDao.save(contactsInfo);
	}
	
	@Override
	public void update(ContactsInfoEntity contactsInfo){
		contactsInfoDao.update(contactsInfo);
	}
	
	@Override
	public void delete(Integer id){
		contactsInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		contactsInfoDao.deleteBatch(ids);
	}
	
}
